  /**
   * Generate time : 2012-06-14 1:44:16
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSystem 
 * table comment : 系统周期设置 
 */
public class ZMCTSystem extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdStart = " ";		/* 是否启动服务*/
	private String fdSmsDevice = " ";		/* 短信设备*/
	private String fdSystemFrequency = " ";		/* 服务周期*/
	private String fdPersonDs = " ";		/* 人员信息数据源*/
	private String fdPersonSql = " ";		/* 人员配置SQL*/
	private String fdDepartmentDs = " ";		/* 部门信息数据源*/
	private String fdDepartmentSql = " ";		/* 部门信息SQL*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStart");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("是否启动服务");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSmsDevice");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("短信设备");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSystemFrequency");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("服务周期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonDs");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("人员信息数据源");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonSql");
	eiColumn.setFieldLength(2000);	
	eiColumn.setDescName("人员配置SQL");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentDs");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("部门信息数据源");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentSql");
	eiColumn.setFieldLength(2000);	
	eiColumn.setDescName("部门信息SQL");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSystem() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdStart - 是否启动服务
	 * @return the fdStart
	 */
	public String getFdStart() {
		return this.fdStart;
	}
	
	/**
	 * set the fdStart - 是否启动服务
	 */
	public void setFdStart(String fdStart) {
		this.fdStart = fdStart;
	}
	
	/**
	 * get the fdSmsDevice - 短信设备
	 * @return the fdSmsDevice
	 */
	public String getFdSmsDevice() {
		return this.fdSmsDevice;
	}
	
	/**
	 * set the fdSmsDevice - 短信设备
	 */
	public void setFdSmsDevice(String fdSmsDevice) {
		this.fdSmsDevice = fdSmsDevice;
	}
	
	/**
	 * get the fdSystemFrequency - 服务周期
	 * @return the fdSystemFrequency
	 */
	public String getFdSystemFrequency() {
		return this.fdSystemFrequency;
	}
	
	/**
	 * set the fdSystemFrequency - 服务周期
	 */
	public void setFdSystemFrequency(String fdSystemFrequency) {
		this.fdSystemFrequency = fdSystemFrequency;
	}
	
	/**
	 * get the fdPersonDs - 人员信息数据源
	 * @return the fdPersonDs
	 */
	public String getFdPersonDs() {
		return this.fdPersonDs;
	}
	
	/**
	 * set the fdPersonDs - 人员信息数据源
	 */
	public void setFdPersonDs(String fdPersonDs) {
		this.fdPersonDs = fdPersonDs;
	}
	
	/**
	 * get the fdPersonSql - 人员配置SQL
	 * @return the fdPersonSql
	 */
	public String getFdPersonSql() {
		return this.fdPersonSql;
	}
	
	/**
	 * set the fdPersonSql - 人员配置SQL
	 */
	public void setFdPersonSql(String fdPersonSql) {
		this.fdPersonSql = fdPersonSql;
	}
	
	/**
	 * get the fdDepartmentDs - 部门信息数据源
	 * @return the fdDepartmentDs
	 */
	public String getFdDepartmentDs() {
		return this.fdDepartmentDs;
	}
	
	/**
	 * set the fdDepartmentDs - 部门信息数据源
	 */
	public void setFdDepartmentDs(String fdDepartmentDs) {
		this.fdDepartmentDs = fdDepartmentDs;
	}
	
	/**
	 * get the fdDepartmentSql - 部门信息SQL
	 * @return the fdDepartmentSql
	 */
	public String getFdDepartmentSql() {
		return this.fdDepartmentSql;
	}
	
	/**
	 * set the fdDepartmentSql - 部门信息SQL
	 */
	public void setFdDepartmentSql(String fdDepartmentSql) {
		this.fdDepartmentSql = fdDepartmentSql;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStart(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStart")), fdStart));
		setFdSmsDevice(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSmsDevice")), fdSmsDevice));
		setFdSystemFrequency(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSystemFrequency")), fdSystemFrequency));
		setFdPersonDs(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonDs")), fdPersonDs));
		setFdPersonSql(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonSql")), fdPersonSql));
		setFdDepartmentDs(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentDs")), fdDepartmentDs));
		setFdDepartmentSql(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentSql")), fdDepartmentSql));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStart",StringUtils.toString(fdStart, eiMetadata.getMeta("fdStart")));	
			map.put("fdSmsDevice",StringUtils.toString(fdSmsDevice, eiMetadata.getMeta("fdSmsDevice")));	
			map.put("fdSystemFrequency",StringUtils.toString(fdSystemFrequency, eiMetadata.getMeta("fdSystemFrequency")));	
			map.put("fdPersonDs",StringUtils.toString(fdPersonDs, eiMetadata.getMeta("fdPersonDs")));	
			map.put("fdPersonSql",StringUtils.toString(fdPersonSql, eiMetadata.getMeta("fdPersonSql")));	
			map.put("fdDepartmentDs",StringUtils.toString(fdDepartmentDs, eiMetadata.getMeta("fdDepartmentDs")));	
			map.put("fdDepartmentSql",StringUtils.toString(fdDepartmentSql, eiMetadata.getMeta("fdDepartmentSql")));	
			
		return map;
	
	}
}